﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ListadoAlumno.Models;

namespace ListadoAlumno.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/


        public static List<Alumno> listaAlumnos = new List<Alumno>();

        public ActionResult Index()
        {
           Curso miCurso = new Curso();
        
           miCurso.listaCurso.Add(new Alumno("damian", 33104509, 6.5));
           miCurso.listaCurso.Add(new Alumno("Fabian", 33104508, 7.0));
           miCurso.listaCurso.Add(new Alumno("Ramiro", 33104507, 4.0));
           miCurso.listaCurso.Add(new Alumno("Ariel", 33104506, 3.5));
           miCurso.listaCurso.Add(new Alumno("Erika", 33104505, 8.9));
           miCurso.listaCurso.Add(new Alumno("Cinthia", 33104504, 2.5));
           miCurso.listaCurso.Add(new Alumno("Soledad", 33104503, 3.0));
           miCurso.listaCurso.Add(new Alumno("Ndia", 33104502, 6.0));

          
            return View(model:miCurso);



        }
        

    }
}
